package cn.csq.observer;

public abstract class Observer {

    public String stat = "";

    public Observer(String stat) {
        this.stat = stat;
    }

    void updateStat(String newStat){
        stat = newStat;
        System.out.println("当前状态为: " + this.stat);
    };

}
